package com.itheima.io;

import java.io.FileOutputStream;
import java.io.IOException;

public class IODemo04 {
    public static void main(String[] args)  {
        FileOutputStream fos = null;
        try {
            fos = new FileOutputStream("day11_IO\\a.txt",true);
            String  s = "\r\n123456";
            fos.write(s.getBytes());

        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fos!=null) {
                try {
                    fos.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
